#include "cusums.h"

int main() {
    int i;
    int epsilon_test[N];
    for (i = 0; i < N; i++) {
        epsilon_test[i] = i * 73 % 7 == 0;
    }
    int res_sup; int ref_sup = 1;
    int res_inf; int ref_inf = -14285;
    CumulativeSums(&res_sup, &res_inf, epsilon_test);
    printf("sup = %d - inf = %d\n", res_sup, res_inf);

    if (res_sup != ref_sup || res_inf != ref_inf) {
        fprintf(stderr, "Benchmark results are incorrect\n");
        return -1;
    }

    printf("Success.\n");
    return 0;
}
